export interface UserInfo {
  id: number
  userName: string
  userPassword: string
  userAccount: string
}

export interface Knowledge {
  id?: string
  vectorStoreType?: string
  embedModel?: string
  kbInfo?: string
  knowledgeBaseName?: string
}

export function getUserInfoApi() {
  return useGet<UserInfo>('/user/info')
}

export function getUser(params:any) {
  
  return useGet<any>(`/user/getUserByToken/${params}`,null,
  {
    token: false,
    loading:false,
    customDev:true,
  })
}